package com.company.mediator.sample01;

public class CommonMember extends Member
{
	public CommonMember(String name)
	{
		super(name);
	}
	
	public void sendText(String to,String message)
	{
	    System.out.println("--CommonMember send text");
	    chatroom.sendText(name,to,message);  //通过中介者发送信息
	}
	
	public void sendImage(String to,String image)
	{
		System.out.println("--CommonMember cannot send image");
	}
}